package com.hhh.springai_test.service;

import com.hhh.springai_test.model.dto.communityTag.AddCommunityTagDTO;
import com.hhh.springai_test.model.dto.communityTag.UpdateCommunityTagDTO;
import com.hhh.springai_test.model.po.CommunityTag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 29915
* @description 针对表【community_tag(社区tag表)】的数据库操作Service
* @createDate 2025-02-02 11:24:02
*/
public interface CommunityTagService extends IService<CommunityTag> {
    
    /**
     * 添加标签
     * @param addCommunityTagDTO
     * @return
     */
    long addCommunityTag(AddCommunityTagDTO addCommunityTagDTO);

    /**
     * 删除标签
     * @param id
     * @return
     */
    boolean deleteCommunityTag(Long id);

    /**
     * 更新标签
     * @param updateCommunityTagDTO
     * @return
     */
    boolean updateCommunityTag(UpdateCommunityTagDTO updateCommunityTagDTO);

    /**
     * 获取所有标签
     * @return
     */
    List<CommunityTag> listCommunityTags();
}
